package com.aw.puzzle.dropboxdiet;

/**
 * User: gmc
 * Date: 29/01/11
 */
public class SearchResult {
    private ActivityGroup equivalentGroup;
    private CombinationSetManager lastCombinationSetManager;
    private CombinationSet firstCombSetGreater = null;

    public CombinationSet getFirstCombSetGreater() {
        return firstCombSetGreater;
    }

    public void setFirstCombSetGreater(CombinationSet firstCombSetGreater) {
        this.firstCombSetGreater = firstCombSetGreater;
    }

    public ActivityGroup getEquivalentGroup() {
        return equivalentGroup;
    }

    public void setEquivalentGroup(ActivityGroup equivalentGroup) {
        this.equivalentGroup = equivalentGroup;
    }

    public CombinationSetManager getLastCombinationSetManager() {
        return lastCombinationSetManager;
    }

    public void setLastCombinationSetManager(CombinationSetManager lastCombinationSetManager) {
        this.lastCombinationSetManager = lastCombinationSetManager;
    }

    public boolean equivalentGroupWasFound() {
        return equivalentGroup != null;
    }

    public boolean groupToFindWasGreaterThanAllElements() {
        return lastCombinationSetManager == null && firstCombSetGreater == null;
    }
}
